﻿using System.Collections.Generic;

namespace XamlMvp
{
    public static class DictionaryHelpers
    {
        public static T ReHydrate<T>(this IDictionary<string, object> state)
        {
            return Binders.Hydrators.ReHydrate<T>(state);
        }

        public static void DeHydrate<T>(this IDictionary<string, object> state, T obj)
        {
            Binders.Hydrators.DeHydrate(state, obj);
        }
    }
}
